package proxy;

import org.junit.Test;

/**
 * Created by : Infaraway
 * DATE : 2017/3/3
 * Time : 21:15
 * Funtion :
 */
public class TestDynamicCglibProxy {
    @Test
    public void testProxy(){
        DynamicCglibProxy CglibProxy = new DynamicCglibProxy();
        CalculatorImpl testCalculator = (CalculatorImpl) CglibProxy.createProxy(new CalculatorImpl());
        testCalculator.add(3,5);
    }
}
